xen.git
20 years agoConditionalize building the Xen ACPI driver.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 12:13:35 +0000 (13:13 +0100)]
Conditionalize building the Xen ACPI driver.

Also introduces some cleanups to the Xen build system.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix VMX EFER write logic. Also some cleanups.
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:48:51 +0000 (12:48 +0100)]
Fix VMX EFER write logic. Also some cleanups.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAdd back hvm guest apm support and fixed the original apm issues to
kaf24@firebug.cl.cam.ac.uk [Sun, 19 Mar 2006 11:41:28 +0000 (12:41 +0100)]
Add back hvm guest apm support and fixed the original apm issues to
make "halt -p" and "shutdown -h now" work. Also added apm 0x05 CPU
idle, 0x08 Enable PM and 0x0f apm engage/disengage subfunctions.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
20 years agolinux-x86_64: Sync with native.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 16:30:20 +0000 (16:30 +0000)]
linux-x86_64: Sync with native.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix a race that crash domU by calling xenbus_probe twice if it receive event
vhanquez@kneesa.uk.xensource.com [Sat, 18 Mar 2006 13:56:34 +0000 (13:56 +0000)]
Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoMove __do_IRQ() definition to ia64 header file where it belongs.
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 10:12:45 +0000 (11:12 +0100)]
Move __do_IRQ() definition to ia64 header file where it belongs.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 09:59:11 +0000 (10:59 +0100)]
merge with xen-ia64-unstable.hg

20 years agoUpdate to Linux 2.6.16-rc6.
cl349@firebug.cl.cam.ac.uk [Sat, 18 Mar 2006 00:12:26 +0000 (00:12 +0000)]
Update to Linux 2.6.16-rc6.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch

20 years agomerge
awilliam@xenbuild.aw [Fri, 17 Mar 2006 22:37:28 +0000 (15:37 -0700)]
merge

20 years ago[IA64] VT-i Domains should use same hvm builder as VT-x
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:26:24 +0000 (14:26 -0700)]
[IA64] VT-i Domains should use same hvm builder as VT-x

Signed-off-by: Fred Yang <fred.yang@intel.com>
20 years ago[IA64] -mconstant-gp gcc/as option added.
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:23:43 +0000 (14:23 -0700)]
[IA64] -mconstant-gp gcc/as option added.

Thus gp is not saved/restored before calls, saving memory and bundles.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] zero_page_memmap_ptr removed (was unused).
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:21:56 +0000 (14:21 -0700)]
[IA64] zero_page_memmap_ptr removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] fixed a vcpu_translate bug
awilliam@xenbuild.aw [Fri, 17 Mar 2006 21:06:20 +0000 (14:06 -0700)]
[IA64] fixed a vcpu_translate bug

There are some below code segments in guest OS
1.     Rsm psr.dt
       ...
2.     itc.d r18
       ...
3.     rfi

After executing instruction 1, domain is in metaphysical mode.
When executing instruction 2, VMM gets control to emulate this
instruction. Firstly VMM will try to get opcode, which may
trigger a tlb miss. At this time domain is in metaphysical mode
and the fault address is in region 5. vcpu_translate handles this
as normal guest metaphysical mode.

It's not correct; sometimes this will make dom0 hang.

cpu_translate should handle this situation as if
guest is not in metaphysical mode.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] setting rr0 is not correctly emulated
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:44:48 +0000 (13:44 -0700)]
[IA64] setting rr0 is not correctly emulated

When guest is not at metaphysical mode, VMM should
set machine rr0.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
20 years ago[IA64] Remove "#define page_info page"
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:59 +0000 (13:23 -0700)]
[IA64] Remove "#define page_info page"

This patch removed "#define page_info page" in asm-ia64/config.h.
We tested compilation, booting dom0, and creation/destruction domU.

This patch is "step3" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] Remove header files where "page" is used
awilliam@xenbuild.aw [Fri, 17 Mar 2006 20:23:01 +0000 (13:23 -0700)]
[IA64] Remove header files where "page" is used

This patch is "step2" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years agoFix VMX cpuid handling when EAX == 4.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 15:25:04 +0000 (16:25 +0100)]
Fix VMX cpuid handling when EAX == 4.
When eax == 4, ecx should contain cache level.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoAllows the hypervisor to build without warnings (wisely considered
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:45:46 +0000 (11:45 +0100)]
Allows the hypervisor to build without warnings (wisely considered
errors with/-Werror) when perfc_arrays are enabled in xen/Rules.mk.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix the gzip size extraction in xc_inflate_buffer(). Extract
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:44:55 +0000 (11:44 +0100)]
Fix the gzip size extraction in xc_inflate_buffer(). Extract
bytes as unsigned quantities.

Signed-off-by: David Lively <dlively@virtualiron.com>
20 years agoFix sched_sedf adjdom to properly clamp the period max value.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 10:00:46 +0000 (11:00 +0100)]
Fix sched_sedf adjdom to properly clamp the period max value.
Remove temporary debug tracing.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDeclare inline function as 'static inline', not 'extern inline'.
kaf24@firebug.cl.cam.ac.uk [Fri, 17 Mar 2006 09:57:28 +0000 (10:57 +0100)]
Declare inline function as 'static inline', not 'extern inline'.
Fixes the ioemu build which was broken on some systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReinitialize producer and consumer index to 0 if indexes corruption are detected
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 10:03:37 +0000 (10:03 +0000)]
Reinitialize producer and consumer index to 0 if indexes corruption are detected
in XenBus.
Prevent a kernel infinite loop and add more recovering ability.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoSubstitute kmalloc+memset by kzalloc where possible
vhanquez@kneesa.uk.xensource.com [Fri, 17 Mar 2006 09:52:05 +0000 (09:52 +0000)]
Substitute kmalloc+memset by kzalloc where possible

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years ago[IA64] disable handling of legacy privified insns
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:22:37 +0000 (12:22 -0700)]
[IA64] disable handling of legacy privified insns

Disable handling of privified insns into another instructions.
This is controled by a static constant.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remaining privified insns removed
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:20:59 +0000 (12:20 -0700)]
[IA64] remaining privified insns removed

Privified insns replaced by hyperprivops.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] new hyperprivop
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:19:08 +0000 (12:19 -0700)]
[IA64] new hyperprivop

Missing hyperprivop added.
These were privified insn without hyperprivop.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] postat tool
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:13:23 +0000 (12:13 -0700)]
[IA64] postat tool

Small utility to display and clear privop statistics.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] Changed from page to page_info
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:10:22 +0000 (12:10 -0700)]
[IA64] Changed from page to page_info

This patch changed from "struct page" to "struct page_info" in the below files.
 - xen/arch/ia64/xen/domain.c
 - xen/arch/ia64/xen/mm_init.c
 - xen/arch/ia64/xen/xenmem.c
 - xen/arch/ia64/xen/xenmisc.c
 - xen/include/asm-ia64/config.h
 - xen/include/asm-ia64/mm.h

This patch is "step1" which we showed by the following mail.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00305.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] use of max_addr= & command line
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:06:48 +0000 (12:06 -0700)]
[IA64] use of max_addr= & command line

Use 'max_addr' option to limit the amount of physical memory.  The
default is 4G (the same as the previous hard limit).  The hard-coded
limit is removed.  dom0_command_line now contains the cmdline for
dom0 linux.  saved_command_line now contains the cmdline for Xen (it
is used in Xen).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] fix AFLAGS in Rules.mk
awilliam@xenbuild.aw [Thu, 16 Mar 2006 19:02:39 +0000 (12:02 -0700)]
[IA64] fix AFLAGS in Rules.mk

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
20 years agoClean up HVM relinquish_guest_resources interface and implementation.
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 18:36:28 +0000 (19:36 +0100)]
Clean up HVM relinquish_guest_resources interface and implementation.
Ensure we only unmap the shared I/O page after killing all timers
whose handlers may reference that page.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd Summagraphics Tablet emulation for VNC users. The current PS/2 emulation
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:57:54 +0000 (18:57 +0100)]
Add Summagraphics Tablet emulation for VNC users.  The current PS/2 emulation
is unusable under VNC since a PS/2 mouse provides deltas while VNC only
provides absolute coordinates.  Fortunately, the Summagraphics Tablet provides
absolute coordinates and works perfectly with VNC.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoChange the VNC main input loop delay from 1 second down to 10
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:43:07 +0000 (18:43 +0100)]
Change the VNC main input loop delay from 1 second down to 10
msec.  The 1 second delay was causing significant latency problems
with the mouse while there is no measurable overhead in lowering the
delay down to 10 msec.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoAdd a shadow VRAM to track changes to the real VRAM. When the guest
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 17:41:01 +0000 (18:41 +0100)]
Add a shadow VRAM to track changes to the real VRAM.  When the guest
OS was given write access to the VRAM the device model tracked all
VRAM changes by updating the entire screen on every output loop,
causing significant overhead (a CPU bound loop in a guest slows down
by about 35%) and significant mouse latency (VNC uses the same data
path for mouse events and video updates).  With the shadow VRAM only
modified pages need to be updated and the comparison of the shadow
VRAM to the real VRAM only adds ~4% overhead while eliminating the
mouse latencies.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
20 years agoExplicitly include time.h to get gettimeofday declaration.
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:34:27 +0000 (12:34 +0100)]
Explicitly include time.h to get gettimeofday declaration.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agopcifront poll loop now checks gettimeofday rather than jiffies,
kaf24@firebug.cl.cam.ac.uk [Thu, 16 Mar 2006 11:31:16 +0000 (12:31 +0100)]
pcifront poll loop now checks gettimeofday rather than jiffies,
as the latter does not increase while interrupts are disabled.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoImplement console for Mini-os and also fix 2 bugs:
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:25:50 +0000 (20:25 +0100)]
Implement console for Mini-os and also fix 2 bugs:
a) in initialising new page table frames
b) in initialising idle thread.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
20 years agoMake asm macros use the generally accepted comma-separated arg-passing style.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 19:22:31 +0000 (20:22 +0100)]
Make asm macros use the generally accepted comma-separated arg-passing style.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate interface documentation to include sched_op_new hypercall
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 18:19:22 +0000 (19:19 +0100)]
Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] cleanup in dom_fw.c
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:33:23 +0000 (08:33 -0700)]
[IA64] cleanup in dom_fw.c

Unused code removed.
A few 'static' added.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] LID virtualization
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:28:23 +0000 (08:28 -0700)]
[IA64] LID virtualization

Virtualize lid for domU.
LSAPIC table cleaned for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] dummy IO memmap entry
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:22:03 +0000 (08:22 -0700)]
[IA64] dummy IO memmap entry

Create a dummy IO ports memmap entry for domU, so that
IO accesses are trapped by Xen.  Otherwise, they could
pollute memory.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years ago[IA64] remove warning of xen_init()
awilliam@xenbuild.aw [Wed, 15 Mar 2006 15:20:28 +0000 (08:20 -0700)]
[IA64] remove warning of xen_init()

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
20 years agoRemove unnecessary cr4 handling in vmx_set_cr0.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 12:35:43 +0000 (13:35 +0100)]
Remove unnecessary cr4 handling in vmx_set_cr0.
1) on x86_32, PAE should never be enabled in guest cr4, since we only
support pure IA32 VMX guest.
2) on x86_32p or x86_64, PAE should always be enabled in guest cr4,
since even pure IA32 guest uses PAE paging mode actually.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agomerge
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:59 +0000 (12:24 +0000)]
merge

20 years agofix buffer overflow in print XS_DEBUG command
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:24:34 +0000 (12:24 +0000)]
fix buffer overflow in print XS_DEBUG command

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agomove XS_DEBUG code into a proper function
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 12:08:10 +0000 (12:08 +0000)]
move XS_DEBUG code into a proper function

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoMake MTU rx check in netfront more permissive to allow for 8021q vlan tagging.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:52:33 +0000 (12:52 +0100)]
Make MTU rx check in netfront more permissive to allow for 8021q vlan tagging.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRemove unused macro VMX_CPU_STATE_PG_ENABLED.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:41:58 +0000 (12:41 +0100)]
Remove unused macro VMX_CPU_STATE_PG_ENABLED.
Use vmx_paging_enabled() instead.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoFix 64-bit build.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 11:40:42 +0000 (12:40 +0100)]
Fix 64-bit build.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDo not BUG when receiving unexpected message type from xenbus
vhanquez@kneesa.uk.xensource.com [Wed, 15 Mar 2006 11:09:45 +0000 (11:09 +0000)]
Do not BUG when receiving unexpected message type from xenbus
print a warning and discard the query

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoThere is no need to pin page tables when XENFEAT_writable_page_tables
Ian.Campbell@xensource.com [Wed, 15 Mar 2006 10:33:43 +0000 (10:33 +0000)]
There is no need to pin page tables when XENFEAT_writable_page_tables
is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
20 years agoFix x86/64 HVM assertion failure.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:09:20 +0000 (11:09 +0100)]
Fix x86/64 HVM assertion failure.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoI've found it useful to display the panic message *before* dropping into the
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:07:26 +0000 (11:07 +0100)]
I've found it useful to display the panic message *before* dropping into the
debugger. Once there it may be very difficult to find the original message,
and often a debugger isn't even needed if you can see what panicked.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoUnlike x86 and apparently ia64, PowerPC delivers timer interrupts as a
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 10:06:45 +0000 (11:06 +0100)]
Unlike x86 and apparently ia64, PowerPC delivers timer interrupts as a
different exception than device interrupts. For PowerPC Xen, we emulate this
exception rather than delivering timer events as virtual IRQs. This patch
introduces no functional changes for x86 and ia64, but is a required change
for xen/arch/ppc.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
20 years agoAdd extra tracing near a commonly-failing scheduler assertion.
kaf24@firebug.cl.cam.ac.uk [Wed, 15 Mar 2006 09:32:34 +0000 (10:32 +0100)]
Add extra tracing near a commonly-failing scheduler assertion.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] warning cleanup
awilliam@xenbuild.aw [Tue, 14 Mar 2006 21:38:22 +0000 (14:38 -0700)]
[IA64] warning cleanup

cleanup a few trivial warnings.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agomerge
awilliam@xenbuild.aw [Tue, 14 Mar 2006 20:50:35 +0000 (13:50 -0700)]
merge

20 years ago[IA64] Turn off pending guest timer printk
awilliam@xenbuild.aw [Tue, 14 Mar 2006 20:10:21 +0000 (13:10 -0700)]
[IA64] Turn off pending guest timer printk

Per discussion in January, this printk can be turned off as it
is just indicating that a condition occurred which Kevin fixed.

http://lists.xensource.com/archives/html/xen-ia64-devel/2006-01/msg00117.html

The similar "Oops: timer tick before it's due" from Linux
is probably related but not understood or fixed.

Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
20 years ago[IA64] Fixed PGT and PGC flags
awilliam@xenbuild.aw [Tue, 14 Mar 2006 19:38:49 +0000 (12:38 -0700)]
[IA64] Fixed PGT and PGC flags

This patch fixed PGT and PGC flags in include/asm-ia64/mm.h.
It's same as x86_64.

Please see the below.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00229.html
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00235.html

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
20 years ago[IA64] Remove the last compile warnings
awilliam@xenbuild.aw [Tue, 14 Mar 2006 19:27:57 +0000 (12:27 -0700)]
[IA64] Remove the last compile warnings

This patch intends to remove the last warnings when compile

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
20 years agoDefine a new sched_op hypercall called sched_op_new, which differs from the
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 18:33:45 +0000 (19:33 +0100)]
Define a new sched_op hypercall called sched_op_new, which differs from the
legacy hypercall in that it takes a pointer to a block of extra arguments
rather than an opaque unsigned long. The old hypercall still exists, for
backwards compatibility.

The new hypercall supports new sub-command SCHEDOP_poll, which can be used to
wait on a set of event-channel ports with an optional timeout. This is exported
in XenLinux as HYPERVISOR_poll, and used in the pcifront driver to wait on a
response from the pciback driver.

Can also be used for debuggers. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: John Levon <john.levon@sun.com>
20 years agoAdd a read barrier to the time-values-uptodate xenlinux time checking function.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 16:35:38 +0000 (17:35 +0100)]
Add a read barrier to the time-values-uptodate xenlinux time checking function.
Also fix monotonic clock to use just a compile barrier instead of smp_rmb.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix ASSERT failure caused by NX support code on x86_64
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 15:09:34 +0000 (16:09 +0100)]
Fix ASSERT failure caused by NX support code on x86_64
When turning on debug for x86_64, ASSERT(gpfn =3D=3D (gpfn & =
PGT_mfn_mask))
in __shadow_status will fail, this patch makes the NX support code
comply with this ASSERT.
NB: NX on PAE xen is not supported yet.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoWhen both stolen and blocked are rounded down, it is possible for the
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 15:00:16 +0000 (16:00 +0100)]
When both stolen and blocked are rounded down, it is possible for the
final increment of the cpu local processed_system_time to move the cpu
local system time ahead a bit further than expected - but still proper
wrt. wall clock time.

This gives problems on a next timer interrupt, when stolen and blocked
both get rounded up and end up incrementing the per cpu
processed_system_time too far.

These simple checks make sure that the cpu local processed_system_time
never gets advanced too far.  Not advancing the variable now should be
fine, since we'll increment it at the next timer tick...

This patch has made the "time went backwards" error messages go away
completely.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoXen/ia64 build fixes.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:45:00 +0000 (15:45 +0100)]
Xen/ia64 build fixes.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoTrivial ia64 tools build fix.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:44:04 +0000 (15:44 +0100)]
Trivial ia64 tools build fix.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
20 years agoFix a bug which occurs when Xen is compiled with debug=y. Destroying a
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:43:10 +0000 (15:43 +0100)]
Fix a bug which occurs when Xen is compiled with debug=y. Destroying a
32-bit HVM guest on x86/64 will cause a Xen hang.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
20 years agoFix the bug that hvm domain network breaks after xm reboot. Root
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:40:44 +0000 (15:40 +0100)]
Fix the bug that hvm domain network breaks after xm reboot.  Root
cause: qemu network related info is not saved in xenstore, so after
reboot, this information is missing, and qemu can not start network.

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
20 years agoFix build error with -Wstrict-prototype.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:36:40 +0000 (15:36 +0100)]
Fix build error with -Wstrict-prototype.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix memory leak in xc_domain_dumpcore and simplify copy_from_domain_page.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:33:57 +0000 (15:33 +0100)]
Fix memory leak in xc_domain_dumpcore and simplify copy_from_domain_page.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix a typo in a comment -- vmxloader is now hvmloader.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:26:54 +0000 (15:26 +0100)]
Fix a typo in a comment -- vmxloader is now hvmloader.

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
20 years agoFix PAE ptep_get_and_clear_full(). The fast path requires us to manually clear
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:25:33 +0000 (15:25 +0100)]
Fix PAE ptep_get_and_clear_full(). The fast path requires us to manually clear
the low half before the high half. Otherwise the compiler may reorder the writes
and validation in Xen will fail.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoInitialise blkfront_info to zeroes after allocating it.
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 14:18:35 +0000 (15:18 +0100)]
Initialise blkfront_info to zeroes after allocating it.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRevert some of the bigger changes in c/s 9217 as these have been
kaf24@firebug.cl.cam.ac.uk [Tue, 14 Mar 2006 12:01:43 +0000 (13:01 +0100)]
Revert some of the bigger changes in c/s 9217 as these have been
causing problems for a few people:
 1. HVM guests can now have page directories with unknown
    back pointers (I think this is the cause of problems that
    Jun Nakajima was seeing).
 2. L1 pagetable pinning requests are no longer ignored (may
    be the cause of problems Joe Bonasera was seeing).
 3. The PGT_va_mutable flag has been reintroduced, but for
    L1 pagetables only.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoClean up block-device hotplug routines in xenlinux.
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 14:06:58 +0000 (15:06 +0100)]
Clean up block-device hotplug routines in xenlinux.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd a 't' debug key to Xen for displaying info about cross-cpu clock jitter.
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 12:03:51 +0000 (13:03 +0100)]
Add a 't' debug key to Xen for displaying info about cross-cpu clock jitter.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMake time-backwarsd warning a run-time configurable option.
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 12:03:18 +0000 (13:03 +0100)]
Make time-backwarsd warning a run-time configurable option.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThe existing xc_domain_dumpcore is very specific to disk/file based
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 10:47:56 +0000 (11:47 +0100)]
The existing xc_domain_dumpcore is very specific to disk/file based
output.  Refactor the code slightly to allow more user-specified
control.  This is done by adding a parallel
xc_domain_dumpcore_via_callback, which allows the specification of a
callback routine and an opaque argument block.  The existing dumpcore
routine is modified to use the callback for all write operations and
to turn the single seek into a small write (it's for page alignment).

Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
20 years agoxm top was listed twice in the help message -- remove it from the Host Commands
emellor@leeni.uk.xensource.com [Mon, 13 Mar 2006 10:10:27 +0000 (11:10 +0100)]
xm top was listed twice in the help message -- remove it from the Host Commands
section, leaving it in the Domain Commands section.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix broken assertion in SEDF scheduler.
kaf24@firebug.cl.cam.ac.uk [Mon, 13 Mar 2006 09:49:45 +0000 (10:49 +0100)]
Fix broken assertion in SEDF scheduler.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNo need to pin/unpin intermediate pagetables in x86/64 xenlinux.
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 18:37:38 +0000 (19:37 +0100)]
No need to pin/unpin intermediate pagetables in x86/64 xenlinux.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoIgnore pinning of other than root page directories. Disallow
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 18:37:00 +0000 (19:37 +0100)]
Ignore pinning of other than root page directories. Disallow
creation of pagetables with 'va_unknown' page-directory backptrs.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd missing include of a header file to avoid a compile warning.
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 09:03:33 +0000 (10:03 +0100)]
Add missing include of a header file to avoid a compile warning.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agopciback sends evtchn notification to pcifront when its request is processed.
kaf24@firebug.cl.cam.ac.uk [Sun, 12 Mar 2006 08:52:19 +0000 (09:52 +0100)]
pciback sends evtchn notification to pcifront when its request is processed.
This may in future allow pcifront to avoid spin-waiting.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 14:40:33 +0000 (15:40 +0100)]
Merged.

20 years agoRemove blank line -- this was causing all the tests to be run twice, because
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 14:40:26 +0000 (15:40 +0100)]
Remove blank line -- this was causing all the tests to be run twice, because
the blank line is interpreted as running make check in tests/.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:53:22 +0000 (11:53 +0100)]
Merged.

20 years agoDefine TESTS to be the .test files, not the .py files, otherwise the chmod +x
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:52:40 +0000 (11:52 +0100)]
Define TESTS to be the .test files, not the .py files, otherwise the chmod +x
doesn't get called.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoHG Patch
root@dyn9047022116.beaverton.ibm.com [Sat, 11 Mar 2006 10:46:38 +0000 (11:46 +0100)]
HG Patch

Add feature to layer xm-test tests, grouping of tests by casename and
execution of tests by user specified lists.

Signed-off-by: Woody Marvel <marvel@us.ibm.com>
20 years ago- Reworked to use your match_domid suggestion and filtering
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:45:10 +0000 (11:45 +0100)]
- Reworked to use your match_domid suggestion and filtering
- Aligned output and help to fit within 80 char limit
- User now deals in milliseconds instead of nanoseconds
- Fixed some missing parens in tests (I had pushed stale versions)
- Updated tests to deal with period/slice/latency in ms

root@bebop:~/xm-test.sedf/tests/sedf # xm sched-sedf
Name                              ID Period(ms) Slice(ms) Lat(ms) Extra Weight
Domain-0                           0      20.0      15.0     0.0      1      0

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:20:32 +0000 (11:20 +0100)]
Merged.

20 years agoTrivial fix to bind implementation.
emellor@leeni.uk.xensource.com [Sat, 11 Mar 2006 10:19:11 +0000 (11:19 +0100)]
Trivial fix to bind implementation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoChangeset 9134 introduced a caching mechanism when xenbus_switch_state
kaf24@firebug.cl.cam.ac.uk [Sat, 11 Mar 2006 09:49:28 +0000 (10:49 +0100)]
Changeset 9134 introduced a caching mechanism when xenbus_switch_state
is invoked. This causes a problem in the resume part of a suspend-resume
cycle due to the backend not seeing that a state in the frontend was
set. This patch fixes this in the TPM frontend driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
20 years ago Currently if one tries to execute VMX instruction from inside the
kaf24@firebug.cl.cam.ac.uk [Sat, 11 Mar 2006 09:47:55 +0000 (10:47 +0100)]
 Currently if one tries to execute VMX instruction from inside the
VMX guest, the Xen hyper visor has no handling of it resulting in a
bug(). This patch handles such VMX instructions from the guest returning
invalid opcode to the guest. Also the macro VMX_INVALID_ERROR_CODE is
renamed to the more meaningful VMX_DELIVER_NO_ERROR_CODE.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-Off-By: Jun Nakajima <jun.nakajima@intel.com>=20
20 years agoEnable the ejection of the physical cdrom tray, when user enters
kaf24@firebug.cl.cam.ac.uk [Sat, 11 Mar 2006 09:44:48 +0000 (10:44 +0100)]
Enable the ejection of the physical cdrom tray, when user enters
"eject cdrom" in the control console of a VMX guest.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
20 years ago[IA64] Remove unused and unwritten active_mm field of vcpu and domain.
awilliam@xenbuild.aw [Fri, 10 Mar 2006 17:00:31 +0000 (10:00 -0700)]
[IA64] Remove unused and unwritten active_mm field of vcpu and domain.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
20 years agoMore build config changes:
kaf24@firebug.cl.cam.ac.uk [Fri, 10 Mar 2006 16:32:04 +0000 (17:32 +0100)]
More build config changes:
 - Build -O2 rather than -O3
 - Build with -Wstrict-prototypes
 - Move target-specific generic compiler switches to Config.mk

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years ago[IA64] fix print out in ia64 setup_guest()
awilliam@xenbuild.aw [Fri, 10 Mar 2006 16:19:54 +0000 (09:19 -0700)]
[IA64] fix print out in ia64 setup_guest()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
20 years ago[IA64] compilation fix hypercall.h
awilliam@xenbuild.aw [Fri, 10 Mar 2006 16:18:52 +0000 (09:18 -0700)]
[IA64] compilation fix hypercall.h

it refers dom0_op_t.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>